<template>
  <div>
    <!-- 首页 -->
    <!-- <Exmaple /> -->
    <Pie :data="state.salePie" />
    <Map :data="state.saleMap" />
  </div>
</template>

<script setup lang="ts">
// import Exmaple from "./Exmaple.vue";
import Pie from "./Pie.vue";
import Map from "./Map.vue";
import { getHomeInfoApi } from "@/api";
import { reactive } from "vue";
const state = reactive<HomeData>({
  saleMap: [],
  salePie: [],
});
getHomeInfoApi().then((res) => {
  state.saleMap = res.data.saleMap;
  state.salePie = res.data.salePie;
});
</script>

<style scoped></style>
